﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TorrentProxy
{
	static class Utils
	{
		public static int RatioToPercents(float ratio)
		{
			return (int) Math.Round(ratio * 100);
		}

		public static float PercentsToRatio(int percents)
		{
			return percents/100.0f;
		}
	}
}
